﻿/*@font-face {
    font-family: '微软雅黑';
    src: url('res://ConsoleApp1/msyh.ttc');
}*/ /*加载字体*/

/** {
    FontFamily: 微软雅黑; 
}*/

@media windows {
    * {
        FontFamily: '微软雅黑'; /*不同系统的字体不同，自己根据情况改或者使用内嵌字体*/
    }
}

@media osx {
    * { FontFamily: '苹方-简'; }
}

@media linux {
    * { FontFamily: '文泉驿正黑'; }
}

/*设置窗体标题栏背景颜色圆角*/

/*#caption {
    IsAntiAlias: true;
    Background: #2c2c2c;
    CornerRadius:5,5,0,0;
    Height:30;
}
#frame {
    Background: #2c2c2c;
    CornerRadius: 5;
    IsAntiAlias: true;
}*/

Button {
    Background: #FFFFFF;
    BorderFill: #DCDFE6;
    CornerRadius: 4, 4, 4, 4;
    IsAntiAlias: True;
}

Button[IsMouseOver=true] {
    Background: rgb(236, 245, 255);
    BorderFill: rgb(198, 226, 255);
    Foreground: rgb(64, 158, 255);
}

Button[IsPressed=true] { BorderFill: rgb(58, 142, 230); }

Button.primary {
    Background: rgb(64, 158, 255);
    BorderFill: rgb(64, 158, 255);
    CornerRadius: 4, 4, 4, 4;
    Foreground: #FFFFFF;
}

Button.primary[IsMouseOver=true] {
    Background: rgb(102, 177, 255);
    BorderFill: rgb(102, 177, 255);
    Foreground: #FFFFFF;
}

Button.primary[IsPressed=true] {
    Background: rgb(58, 142, 230);
    BorderFill: rgb(58, 142, 230);
}

Button.success {
    Background: rgb(103, 194, 58);
    BorderFill: rgb(103, 194, 58);
    CornerRadius: 4, 4, 4, 4;
    Foreground: #FFFFFF;
}

Button.success[IsMouseOver=true] {
    Background: rgb(133, 206, 97);
    BorderFill: rgb(133, 206, 97);
    Foreground: #FFFFFF;
}

Button.success[IsPressed=true] {
    Background: rgb(93, 175, 52);
    BorderFill: rgb(93, 175, 52);
}

Button.danger {
    Background: rgb(245, 108, 108);
    BorderFill: rgb(245, 108, 108);
    CornerRadius: 4, 4, 4, 4;
    Foreground: #FFFFFF;
}

Button.danger[IsMouseOver=true] {
    Background: rgb(247, 137, 137);
    BorderFill: rgb(247, 137, 137);
    Foreground: #FFFFFF;
}

Button.danger[IsPressed=true] {
    Background: rgb(221, 97, 97);
    BorderFill: rgb(221, 97, 97);
}

#dialogClose { BorderFill: null; }

TextBox, .textBox, DatePicker {
    Background: #fff;
    BorderFill: #DCDFE6;
    BorderStroke: 1;
    CornerRadius: 4, 4, 4, 4;
    IsAntiAlias: true;
}

.groupPanel TextBox, DatePicker TextBox, .textBox TextBox { BorderStroke: 0; }

.textBox[IsKeyboardFocusWithin=true] { BorderFill: #1E9FFF; }

.singleLine { /*单行文本框*/
    AcceptsReturn: false;
    HScrollBarVisibility: Hidden;
    VScrollBarVisibility: Hidden;
}

.singleLine #contentPresenter { Padding: 3; }

.multiline { /*多行文本框*/ }


.slotLeft {
    Background: #F5F7FA;
    BorderFill: #DCDFE6;
    BorderThickness: 1, 0, 0, 0;
    BorderType: BorderThickness;
    CornerRadius: 0, 4, 4, 0;
    MarginBottom: 0;
    MarginRight: 0;
    MarginTop: 0;
}

RadioButton #radioButtonBorder { StrokeFill: rgb(220, 223, 230); }

RadioButton[IsChecked=true] #radioButtonBorder {
    Fill: #1E9FFF;
    StrokeFill: #1E9FFF;
}

RadioButton #optionMark {
    Fill: #fff;
    StrokeFill: #1E9FFF;
}

CheckBox #indeterminateMark { Fill: #1E9FFF; }

CheckBox #checkBoxBorder {
    Background: #fff;
    BorderFill: rgb(220, 223, 230);
}

CheckBox[IsChecked=true] #checkBoxBorder {
    Background: #1E9FFF;
    BorderFill: #1E9FFF;
}

CheckBox Polyline { StrokeFill: #fff; }

.radioGroup {
    BorderFill: rgb(220, 223, 230);
    BorderThickness: 1, 1, 0, 1;
    BorderType: BorderThickness;
}

.radioGroup RadioButton {
    BorderFill: rgb(220, 223, 230);
    BorderThickness: 0, 0, 1, 0;
    BorderType: BorderThickness;
}

.radioGroup RadioButton #markPanel { Visibility: Collapsed; }

.radioGroup RadioButton TextBlock { Margin: 5; }

.radioGroup RadioButton[IsChecked=true] {
    Background: rgb(64, 158, 255);
    Foreground: #fff;
}

.error {
    Foreground: #f00;
    Visibility: Collapsed;
}

.error[DesignMode=true] { Visibility: Visible; }

.twoLine[AttachedExtenstions.IsError

=

true]

.error { Visibility: Visible; }

.twoLine[AttachedExtenstions.IsError

=

true]

.textBox { BorderFill: #f00; }

ScrollBar { Background: null; }

ScrollBar Thumb {
    CornerRadius: 4;
    IsAntiAlias: true;
}

ScrollBar[Orientation=Horizontal] { Height: 7; }

ScrollBar[Orientation=Vertical] { Width: 7; }

ScrollBar #PART_LineUpButton, ScrollBar #PART_LineDownButton { Visibility: Collapsed; }

ComboBox {
    Background: #fff;
    BorderFill: #DCDFE6;
    BorderStroke: 1;
    CornerRadius: 4, 4, 4, 4;
    IsAntiAlias: true;
}

ComboBox[IsKeyboardFocusWithin=true] { BorderFill: #1E9FFF; }

#DropDownPanel TextBlock {
    MarginBottom: 2;
    MarginLeft: 5;
    MarginTop: 2;
}

#dropDownBorder {
    BorderStroke: 0;
    ShadowBlur: 2;
    ShadowColor: rgba(0, 0, 0, 0.4);
}

#DropDownPanel[IsMouseOver=false] ScrollBar { Visibility: Collapsed; }

#DropDownPanel ScrollBar[Orientation=Horizontal] { Height: 10; }

#DropDownPanel ScrollBar[Orientation=Vertical] { Width: 10; }

Slider { IsAntiAlias: true; }

Slider Thumb {
    Background: #fff;
    BorderFill: rgb(64, 158, 255);
    BorderStroke: 2;
    CornerRadius: 7;
    Height: 16;
    IsAntiAlias: true;
    Width: 16;
    ZIndex: 1;
}


Slider Thumb[IsMouseOver=true] {
    animation-duration: 0.1s;
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
    animation-name: sliderMouseOver;
}

Slider #TrackBackground {
    Background: rgb(228, 231, 237);
    BorderStroke: 0;
    CornerRadius: 2;
}

Slider #decreaseRepeatButton {
    Background: rgb(64, 158, 255);
    CornerRadius: 2;
}

Slider[Orientation=Horizontal] #decreaseRepeatButton {
    Height: 4;
    MarginLeft: 5;
}

Slider[Orientation=Vertical] #decreaseRepeatButton {
    MarginBottom: 5;
    Width: 4;
}

ProgressBar {
    Background: rgb(235, 238, 245);
    BorderFill: null;
    CornerRadius: 5;
    IsAntiAlias: true;
}

ProgressBar #Indicator, ProgressBar #Animation { CornerRadius: 5; }

NumericUpDown {
    Background: #fff;
    BorderFill: #DCDFE6;
    BorderStroke: 1;
    CornerRadius: 4, 4, 4, 4;
    IsAntiAlias: true;
}

NumericUpDown RepeatButton {
    Background: rgb(245, 247, 250);
    Width: 20;
}

NumericUpDown #decreaseBtn { CornerRadius: 4, 0, 0, 4; }

NumericUpDown #increaseBtn { CornerRadius: 0, 4, 4, 0; }

NumericUpDown #textBoxBorder { BorderFill: #DCDFE6; }

NumericUpDown TextBox { BorderStroke: 0; }

.widget {
    BorderFill: #DCDFE6;
    BorderStroke: 1;
    CornerRadius: 4, 4, 4, 4;
    IsAntiAlias: true;
}

.widgetHead {
    Background: linear-gradient(0 0, 0 100%, #F7F7F7 0, #F0F0F0 1);
    BorderFill: #DCDFE6;
    BorderThickness: 0, 0, 0, 1;
    BorderType: BorderThickness;
}

DataGrid { Foreground: #7a7a7a; }

DataGridCellTemplate, DataGridRow, DataGrid, .DataGridCell { BorderFill: rgb(235, 238, 245); }

DataGridRow { Height: 36; }

DataGridRow[IsMouseOver=true] { Background: rgb(245, 247, 250); }

DataGridRow[IsSelected=true] { Background: rgb(245, 247, 250); }

DataGridColumnTemplate {
    Background: #fff;
    BorderFill: rgb(235, 238, 245);
    FontSize: 15;
    FontStyle: Bold;
    Height: 38;
}

TabControl #headBorder { Background: #fff; }

TabItem > Border { BorderThickness: 0, 0, 0, 2; }

TabItem[IsSelected=true] > Border { BorderFill: #1E9FFF; }

TabItem[IsSelected=true] { Foreground: #1E9FFF; }

TabControl[TabStripPlacement=Left] TabItem, TabControl[TabStripPlacement=Right] TabItem {
    BorderFill: #e8e8e8;
    BorderThickness: 0, 0, 0, 1;
    BorderType: BorderThickness;
    Width: 100%;
}

TabControl[TabStripPlacement=Left] TabItem TextBlock { MarginRight: 0; }

TabControl[TabStripPlacement=Left] TabItem > Border { Width: 100%; }

TabControl[TabStripPlacement=Left] #headerPanel, TabControl[TabStripPlacement=Right] #headerPanel {
    Background: rgb(245, 247, 250);
    Width: 100;
}

.closeBtn[IsMouseOver=true] { Fill: #171717; }

.placeholder {
    Foreground: "192,196,204";
    IsHitTestVisible: false;
    Visibility: Collapsed;
}

.textBox[AttachedExtenstions.IsEmpty=true]

.placeholder { Visibility: Visible; }

.loginBox TextBox, .loginBox .placeholder { FontSize: 16; }

.loginBox CheckBox { Foreground: #757575; }

.searchBox Button { CornerRadius: 0, 4, 4, 0, }

#MenuPop #menuPanel > Border, #MenuPop ContextMenu > Border {
    Background: #fff;
    ShadowColor: rgba(0, 0, 0, 0.4);
}

#MenuPop MenuItem[IsMouseOver=true] { Background: #DCDFE6; }

ListBoxItem { Width: 100%; }

#dialogClose, #dialogClose[IsMouseOver=true] {
    Background: null;
    BorderFill: null;
}

#dialogClose[IsPressed=true] {
    Background: null;
    BorderFill: null;
}

#dialogClose Line { StrokeFill: 218, 218, 218; }

#dialogClose[IsMouseOver=true] Line { StrokeFill: #fff; }

ScrollViewer ScrollBar {
    Background: rgba(0,0,0,0);
}

    ScrollViewer ScrollBar Thumb {
        CornerRadius: 2;
        Background: #ddd;
        MarginRight: 3;
    }

        ScrollViewer ScrollBar Thumb[IsMouseOver=true] {
            Background: #ddd;
        }

    ScrollViewer ScrollBar[Orientation=Horizontal] {
        Height: 4;
    }

    ScrollViewer ScrollBar[Orientation=Vertical] {
        Width: 4;
    }

    ScrollViewer ScrollBar #PART_LineUpButton, ScrollViewer ScrollBar #PART_LineDownButton {
        Visibility: Collapsed;
    }
.chatBoxTextBox {
    Background: null;
    BorderFill: null;
    BorderStroke: 0;
    CornerRadius: 0, 0, 0, 0;
    IsAntiAlias: true;
}
.chatBoxHeadTextBox {
    Background: null;
    BorderFill: null;
    BorderStroke: 0;
    CornerRadius: 0, 0, 0, 0;
    IsAntiAlias: true;
}


/*#region ContextMenu通用样式 */
ContextMenu {
    Background: null;
}

    ContextMenu Border {
        Background: rgba(255,255,255,0.9);
        ShadowColor: rgba(0,0,0,0.5);
        BorderFill: rgba(0,0,0,0);
    }

#menuPanel Border {
    Background: rgba(255,255,255,0.9);
    ShadowColor: rgba(0,0,0,0.5);
    BorderFill: rgba(0,0,0,0);
}

MenuItem {
    Background: rgba(122,150,223,0);
}

    MenuItem[IsMouseOver=true] {
        Background: rgba(122,150,223,0.6);
    }

    MenuItem #contentPresenter {
        Background: rgba(0,0,0,0);
    }
/*#endregion */

